#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/3/15 11:33
# @Author  : Wang Yuhang
# @File    : errors.py
# @Func    : 错误处理程序

from flask import render_template
from . import main


@main.app_errorhandler(404)
def page_not_found(e):
    return render_template('404.html')


@main.app_errorhandler(500)
def internal_server_error(e):
    return render_template('500.html')


@main.app_errorhandler(403)
def http_prohibition(e):
    return render_template('403.html')


